package com.mrjy.test.controller;

import javax.annotation.Resource;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.mrjy.common.entity.UserTest;
import com.mrjy.test.bo.IUserTestBo;

@Controller
@RequestMapping("/test/userTest")
public class UserTestController {
	
	@Resource
	private IUserTestBo userTestBo;
	
	@RequestMapping("/insert")
	@ResponseBody
	public Object insert(UserTest userTest){
		return userTestBo.txInsert(userTest);
	}
	
	/**
	 * 根据用户测试结果查询推荐课程包列表  测试结果
	 * @param userTest
	 * @return
	 */
	@RequestMapping("/queryByTestResult")
	@ResponseBody
	public Object queryByTestResult(UserTest userTest){
		return userTestBo.queryByTestResult(userTest);
	}
	
	/**
	 * 用户--我的学习计划
	 * @param userTest
	 * @return
	 */
	@RequestMapping("/queryLearningPlan")
	@ResponseBody
	public Object queryLearningPlan(UserTest userTest){
		return userTestBo.queryLearningPlan(userTest);
	}
}
